package org.example.spring;

import org.example.spring.mapper.ActorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AService {

    public AService(){
        System.out.println("Aservice initalizing");
    }

    @Autowired
    private BService bService;

    @Autowired
    private ActorMapper actorMapper;

    public void test(){
        actorMapper.getAllactors().forEach(actor -> System.out.println(actor.getUserName()));
    }
}
